import { authorizeRequest } from '../util/http'

type UploadResponse = {
    accessUrl:string;
}
export const uploadFiles = async (file: FormData) => {
    return (await authorizeRequest.post<UploadResponse>('/upload', file, {
        headers: {
            'Content-Type': 'multipart/form-data',
        }
    })).data
}